package com.lb.pdm.entity;

import com.baomidou.mybatisplus.annotation.FieldFill;
import com.baomidou.mybatisplus.annotation.IdType;
import com.baomidou.mybatisplus.annotation.TableField;
import com.baomidou.mybatisplus.annotation.TableId;
import com.baomidou.mybatisplus.annotation.TableName;
import java.io.Serializable;
import java.math.BigDecimal;
import java.util.Date;
import io.swagger.v3.oas.annotations.media.Schema;
import lombok.Data;

/**
 * <p>
 * 人员基础信息表
 * </p>
 *
 * @author pdm
 * @since 2025-10-29
 */
@Data
@TableName("person_info")
@Schema(name = "PersonInfo对象", description = "人员基础信息表")
public class PersonInfo implements Serializable {

    private static final long serialVersionUID = 1L;

    @Schema(description = "人员ID")
    @TableId(value = "id", type = IdType.AUTO)
    private Long id;

    @Schema(description = "姓名")
    @TableField("name")
    private String name;

    @Schema(description = "身份证号")
    @TableField("id_card")
    private String idCard;

    @Schema(description = "性别：1-男，2-女")
    @TableField("gender")
    private Byte gender;

    @Schema(description = "出生日期")
    @TableField("birth_date")
    private Date birthDate;

    @Schema(description = "国籍")
    @TableField("nationality")
    private String nationality;

    @Schema(description = "民族")
    @TableField("ethnicity")
    private String ethnicity;

    @Schema(description = "学历")
    @TableField("education")
    private String education;

    @Schema(description = "婚姻状况：1-未婚，2-已婚，3-离异，4-丧偶")
    @TableField("marital_status")
    private Byte maritalStatus;

    @Schema(description = "联系电话")
    @TableField("phone")
    private String phone;

    @Schema(description = "职业")
    @TableField("occupation")
    private String occupation;

    @Schema(description = "工作单位")
    @TableField("work_unit")
    private String workUnit;

    @Schema(description = "政治面貌")
    @TableField("political_status")
    private String politicalStatus;

    @Schema(description = "宗教信仰")
    @TableField("religion")
    private String religion;

    @Schema(description = "血型")
    @TableField("blood_type")
    private String bloodType;

    @Schema(description = "身高（cm）")
    @TableField("height")
    private BigDecimal height;

    @Schema(description = "照片URL")
    @TableField("photo_url")
    private String photoUrl;

    @Schema(description = "备注")
    @TableField("remark")
    private String remark;

    @Schema(description = "状态：1-正常，0-注销")
    @TableField("status")
    private Byte status;

    @Schema(description = "创建时间")
    @TableField(value = "create_time", fill = FieldFill.INSERT)
    private Date createTime;

    @Schema(description = "更新时间")
    @TableField(value = "update_time", fill = FieldFill.INSERT_UPDATE)
    private Date updateTime;

    @Schema(description = "创建人ID")
    @TableField("create_by")
    private Long createBy;

    @Schema(description = "更新人ID")
    @TableField("update_by")
    private Long updateBy;
}
